package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.result.R;
import com.atguigu.guli.service.trade.feign.fallBack.UcenterFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Component
@FeignClient(value = "service-ucenter",fallback = UcenterFeignFallBack.class)
public interface UcenterFeign {
    @GetMapping("/api/ucenter/member/getUcenter/{memberId}")
    public R getUcenter(@PathVariable("memberId") String memberId);
}
